<div ng-controller="taxScheduleController">
<ol class="breadcrumb">
		您所在的位置：
    	<li><a href="#/index">首页</a></li>
    	<li class="active">企业纳税跟踪</li>
</ol>
<div style="height:60px">
		<ul id="yzmyTab" class="nav nav-tabs">
			<!--class="active"-->
			<li ng-class="{'active':mnstj}" ng-click="mnstjClick()" ><a data-toggle="tab">月纳税统计</a></li>
			<li ng-class="{'active':zftj}" ng-click="rkdzClick()" ><a data-toggle="tab">企业支付统计</a></li>
			
			<!--<li ng-class="{'active':usertj}" ng-click="usertjClick()" ><a data-toggle="tab">月用户量统计</a></li>-->
			<li ng-class="{'active':nsgz}" ng-click="nsdzClick()"><a data-toggle="tab">报表统计</a></li>
		</ul>
</div>	
<!--报表统计 start-->
<div  ng-if="nsgz">
	<div class="modal fade" id="zTreeModal" tabindex="-1" role="dialog" aria-labelledby="zTreeModalLabel" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content" style="">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                <h4 class="modal-title" id="myModalLabel">税务机关选择</h4>
            </div>
            <div class="modal-body" style="height:400px;overflow: scroll;">
            	<ul id="treeDemo" class="ztree"></ul>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
                <button type="button" class="btn btn-primary" ng-click="zTreeclick()">确定</button>
            </div>
        </div><!-- /.modal-content -->
    </div><!-- /.modal -->
</div>
	<div style="border-bottom: 1px #ccc solid;">
		<form class="form-inline" role="form" style="width:100%;">			
			<div class="form-group ns" style="width:28%" >
				<label for="firstname" class="control-label">开始时间：&emsp;</label>
				<div class="input-group date">  	
                	<input type='text' class="form-control" id="startTime" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd'})" placeholder="缴纳开始时间"/>  
                	<span class="input-group-addon">  
                    	<span class="glyphicon glyphicon-calendar"></span>  
                	</span>  
            	</div>  
			</div>
			<div class="form-group ns" style="width:28%" >
				<label for="firstname" class="control-label">结束时间：&emsp;</label>
				<div class="input-group date">  	
                	<input type='text' class="form-control" id="endTime" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd'})" placeholder="缴纳结束时间"/>  
                	<span class="input-group-addon">  
                    	<span class="glyphicon glyphicon-calendar"></span>  
                	</span>  
            	</div>  
			</div>
			<div ng-if="userlevel==1" class="form-group ns" style="width:24%;line-height: 30px;">
					<label for="firstname" class="control-label">税务机关：</label>
					<a href="" id="authority" ng-click="zTree()" data-toggle="modal" data-target="#zTreeModal">全部</a>
					<input type="hidden" id="taxCode"  ng-model="$parent.taxAuthorityCode" class="form-control" >
			</div>
			<button id="bbtjid" type="button" ng-click="bbtj()" class="btn btn-primary nsbtn">
       			<span class="glyphicon glyphicon-search" aria-hidden="true"></span>
        		<i class="icon-search"></i>查询
    		</button>
    		<button id="bbtjload" type="button" class="btn btn-primary nsbtn" style="display: none;">
       			<span class="glyphicon glyphicon-search" aria-hidden="true"></span>
        		<i class="icon-search"></i>查询中...
    		</button>
    	</form>
	</div>
	<table class="table table-bordered" id="tableExcel">
		<caption >
			第三方支付缴税统计情况报表
			<button  type="button" id="excelid" ng-click="method5('tableExcel')" class="btn btn-primary nsbtn" style="margin-top: 0px;float: right;">	
        		导出Excel
    		</button>
		</caption>
		<thead>
			<tr>
				<th>税务机关</th>
				<th>税务机关代码</th>
				<th>缴税总笔数</th>
				<th>缴税总额</th>
				<th>原国税数量</th>
				<th>原国税总额</th>
				<th>原地税数量</th>
				<th>原地税总额</th>
				<th>支付宝数量</th>
				<th>支付宝总额</th>
				<th>微信数量</th>
				<th>微信总额</th>
				<th>网银数量</th>
				<th>网银总额</th>
				<th>用户量</th>
				<!--<th>增值税(笔)</th>
				<th>车辆购置税(笔)</th>
				<th>企业所得税(笔)</th>
				<th>个人所得税(笔)</th>
				<th>其他税种(笔)</th>-->
			</tr>
		</thead>
		<tbody>
			
			<tr ng-repeat="data in list">
				<td>{{data.officeName}}</td>
				<td>{{data.officeId}}</td>
				<td>{{data.jszbs}}</td>
				<td>{{data.jsze}}</td>
				<td>{{data.gszbs}}</td>
				<td>{{data.gsze}}</td>
				<td>{{data.dszs}}</td>
				<td>{{data.dsze}}</td>
				<td>{{data.alipay}}</td>
				<td>{{data.alipayje}}</td>
				<td>{{data.weixin}}</td>
				<td>{{data.weixinje}}</td>
				<td>{{data.wangyin}}</td>
				<td>{{data.wangyinje}}</td>
				<td>{{data.userSum}}</td>
				<!--<td>{{data.zzs}}</td>
				<td>{{data.clgzs}}</td>
				<td>{{data.qysds}}</td>
				<td>{{data.grsds}}</td>
				<td>{{data.qt}}</td>-->
			</tr>
		</tbody>
	</table>
	<!--<pagination count="count"  page="page" pagesize="pagesize" refresh="bbtj()"></pagination>-->
</div>
	<div ng-if="zftj">
		<div>
			<form class="form-inline" role="form">
				<div class="form-group" style="width: 25%;">
					<label for="firstname" class="control-label">纳税人识别号：</label>
					<input type="text" class="form-control" ng-model="$parent.nsrsbh2" maxlength="35" placeholder="纳税人识别号">
				</div>
				<!--<div class="form-group" style="width: 20%;">
					<input type="text" class="form-control" ng-model="$parent.yzskpzh" placeholder="应征税款凭证号">
				</div>
				<div class="form-grop" style="width: 20%;">
					<input type="text" class="form-control" ng-model="$parent.swjgdm" placeholder="税务机关代码">
				</div>-->
				<button style="margin-left:10px" type="button" ng-click="load()" class="btn btn-primary">
       				<span class="glyphicon glyphicon-search" aria-hidden="true"></span>
        			<i class="icon-search"></i>查询
    			</button>
			</form>
		</div>
		<div>
			<div class="tax-title" style="width:100%">
				<span class="glyphicon glyphicon-home"></span><span class="span_title">企业支付统计</span>
			</div>
			<div id="qiyetongji" data-ng-init="load()" style="width:95%;height:600px"></div>
		</div>
	</div>
	<div ng-if="mnstj">
		<div>
			<form class="form-inline" role="form">
				<div class="form-group" style="width:  25%;">
					<label for="firstname" class="control-label">选择月份：</label>
					<input type="text" class="form-control" id="yuensMoth" placeholder="选择月份" onfocus="WdatePicker({dateFmt:'yyyy-MM'})">
				</div>
				<!--<div class="form-group" style="width: 20%;">
					<input type="text" class="form-control" ng-model="$parent.yzskpzh" placeholder="应征税款凭证号">
				</div>
				<div class="form-grop" style="width: 20%;">
					<input type="text" class="form-control" ng-model="$parent.swjgdm" placeholder="税务机关代码">
				</div>-->
				<button style="margin-left:10px" type="button" ng-click="mnstjLine()" class="btn btn-primary">
       				<span class="glyphicon glyphicon-search" aria-hidden="true"></span>
        			<i class="icon-search"></i>查询
    			</button>
			</form>
		</div>
		<div>
			<div class="tax-title" style="width:100%">
				<span class="glyphicon glyphicon-home"></span><span class="span_title">月纳税统计</span>
			</div>
			<div id="mnstjLine" data-ng-init="mnstjLine()" style="width:97%;height:600px"></div>
		</div>
	</div>
	<div ng-if="usertj">
		<div>
			<form class="form-inline" role="form">
				<div class="form-group" style="width: 25%;">
					<label for="firstname" class="control-label">选择月份：</label>
					<input type="text" class="form-control" id="yuserMoth" placeholder="选择月份" onfocus="WdatePicker({dateFmt:'yyyy-MM'})">
				</div>
				<!--<div class="form-group" style="width: 20%;">
					<input type="text" class="form-control" ng-model="$parent.yzskpzh" placeholder="应征税款凭证号">
				</div>
				<div class="form-grop" style="width: 20%;">
					<input type="text" class="form-control" ng-model="$parent.swjgdm" placeholder="税务机关代码">
				</div>-->
				<button style="margin-left:10px" type="button" ng-click="usertjLine()" class="btn btn-primary">
       				<span class="glyphicon glyphicon-search" aria-hidden="true"></span>
        			<i class="icon-search"></i>查询
    			</button>
			</form>
		</div>
		<div>
			<div class="tax-title" style="width:100%">
				<span class="glyphicon glyphicon-home"></span><span class="span_title">月用户量统计</span>
			</div>
			<div id="usertjLine" data-ng-init="usertjLine()" style="width:97%;height:600px"></div>
		</div>
	</div>
</div>
